package com.financing.platform.service;

import java.sql.SQLException;
import java.util.List;
import java.util.Map;

import com.financing.platform.dto.FpNewProductDTO;
import com.financing.platform.dto.ProjectDTO;


public interface IFpNewProductService extends IBaseService {
	
	/**
	 * @throws SQLException 
	 * 
	* @Title: queryFpNewProductByUrl 
	* @Description: 根据url查询是否添加过该产品
	* @param @return    
	* @return List<Map<String,String>   
	* @throws
	 */
	public List<FpNewProductDTO> queryFpNewProductByWhere(FpNewProductDTO fnProductDto) throws SQLException;
	
	/**
	 * 
	* @Title: queryFpNewProductList 
	* @Description: 查询不同的新产品列表
	* @param @return    
	* @return List<FpNewProductDTO>   
	* @throws
	 */
	public List<Map<String,String>> queryFpNewProductList(FpNewProductDTO fnProductDto) throws SQLException;
	
	/**
	 * 
	* @Title: countFpNewProductList 
	* @Description: 查询不同的新产品列表
	* @param @return    
	* @return List<FpNewProductDTO>   
	* @throws
	 */
	public int countFpNewProductList(FpNewProductDTO fnProductDto) throws SQLException;
	
	
	/**
	 * @throws SQLException 
	 * 
	* @Title: addFpNewProduct 
	* @Description: 添加抓取产品
	* @param @return    
	* @return int   
	* @throws
	 */
	public int addFpNewProduct(FpNewProductDTO fnProductDto) throws SQLException;
	
	/**
	 * @throws SQLException 
	 * 
	* @Title: updateFpNewProduct 
	* @Description:更新抓取产品
	* @param @return    
	* @return int   
	* @throws
	 */
	public int updateFpNewProduct(FpNewProductDTO fnProductDto) throws SQLException;
	/**
	 * @throws SQLException 
	 * 
	* @Title: deleteFpNewProduct 
	* @Description:放弃抓取产品
	* @param @param accessControl
	* @param @return    
	* @return int   
	* @throws
	 */
	public int deleteFpNewProduct(FpNewProductDTO fnProductDto) throws SQLException;
	
	/**
	 * 
	* @Title: noBindProjectList 
	* @Description: 查询SFA未绑定产品列表 
	* @param @return    
	* @return List<Map<String,String>>   
	* @throws
	 */
	public List<Map<String,String>> noBindProjectList(FpNewProductDTO fnProductDto) throws SQLException;
	
	/**
	 * 
	* @Title: bindProjectList 
	* @Description: 查询SFA已绑定产品列表 
	* @param @return    
	* @return List<Map<String,String>>   
	* @throws
	 */
	public List<Map<String,Object>> bindProjectList(FpNewProductDTO fnProductDto) throws SQLException;
	/**
	 * 
	* @Title: bindProjectListCount 
	* @Description: 查询SFA已绑定产品列表 
	* @param @return    
	* @return List<Map<String,String>>   
	* @throws
	 */
	public int bindProjectListCount(FpNewProductDTO fnProductDto) throws SQLException;
	
	
	/**
	 * @throws SQLException 
	 * 
	* @Title: updatepRecruitmentSummaryById 
	* @Description:更新SFA产品募集进度
	* @param @param accessControl
	* @param @return    
	* @return int   
	* @throws
	 */
	public int updatepRecruitmentSummaryById(ProjectDTO projectDto) throws SQLException;
	
	/**
	 * @throws SQLException 
	 * 
	* @Title: updateStatus 
	* @Description:更新产品
	* @param @param 
	* @param @return    
	* @return int   
	* @throws
	 */
	public int updateStatus(FpNewProductDTO fnProductDto) throws SQLException;
	
}
